/* 
 * File:   Connection.h
 * Author: dev
 *
 * Created on 26 September, 2014, 9:40 PM
 */

#ifndef CONNECTION_H
#define	CONNECTION_H

#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
#include <boost/asio.hpp>

namespace HTTP_SERVER {
    
    class Connection : private boost::noncopyable {
    public:
        
        typedef boost::shared_ptr<Connection> Ptr ;
        typedef boost::shared_ptr<const Connection> ConstPtr ;
        
        explicit Connection(boost::asio::ip::tcp::socket);
        
        void start() ;
        
    private:
        
        boost::asio::ip::tcp::socket clientSocket_ ;
        
    };
    
    
};

#endif	/* CONNECTION_H */

